<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../node_modules/vue/dist/vue.js"></script>
</head>
<body>
    

    <div id="app">

        <ul>
            <li v-for="(item, index) in goodsList" :key="index">
                <p>
                    <img :src="item.gimg" alt="">
                </p>
                <p>{{item.gname}}</p>
                <p>{{item.gprice}}</p>
            </li>
        </ul>

    </div>


    <script>

        new Vue({
            el: '#app',
            data: {
                goodsList: [
                    {
                        gid: 'x1001',
                        gname: 'iPhone13ProMax',
                        gprice: 9888,
                        gimg: '//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/178968/28/12342/182249/60def402E2dc81322/c8e5bdb06c226cdb.jpg!q70.dpg.webp'
                    },
                    {
                        gid: 'x1002',
                        gname: 'iPhone13Pro',
                        gprice: 7888,
                        gimg: '//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/178968/28/12342/182249/60def402E2dc81322/c8e5bdb06c226cdb.jpg!q70.dpg.webp'
                    },
                    {
                        gid: 'x1003',
                        gname: 'iPhone13',
                        gprice: 6888,
                        gimg: '//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/178968/28/12342/182249/60def402E2dc81322/c8e5bdb06c226cdb.jpg!q70.dpg.webp'
                    },
                    {
                        gid: 'x1004',
                        gname: '小米14',
                        gprice: 3888,
                        gimg: '//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/178968/28/12342/182249/60def402E2dc81322/c8e5bdb06c226cdb.jpg!q70.dpg.webp'
                    },
                    {
                        gid: 'x1005',
                        gname: '华为Mate50Pro',
                        gprice: 7888,
                        gimg: '//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/178968/28/12342/182249/60def402E2dc81322/c8e5bdb06c226cdb.jpg!q70.dpg.webp'
                    },
                    {
                        gid: 'x1006',
                        gname: '华为Mate40Pro',
                        gprice: 4888,
                        gimg: '//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/178968/28/12342/182249/60def402E2dc81322/c8e5bdb06c226cdb.jpg!q70.dpg.webp'
                    },
                    {
                        gid: 'x1007',
                        gname: '华为neo14',
                        gprice: 7888,
                        gimg: '//img10.360buyimg.com/mobilecms/s360x360_jfs/t1/178968/28/12342/182249/60def402E2dc81322/c8e5bdb06c226cdb.jpg!q70.dpg.webp'
                    }
                ]
            }
        })

    </script>

</body>
</html>